package com.example.test.time;

import java.time.Instant    ;
import java.time.Month;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Calendar;

/**
 * @Author yudong
 * @Date 2022/6/9 17:27
 * @description：
 */
public class Local {

    public static void main(String[] args) {

        Calendar ca = Calendar.getInstance(); //构造函数
        ca.set(Calendar.YEAR, 2022);
        ca.set(Calendar.MONTH, 11); //月从0开始
        ca.set(Calendar.DAY_OF_MONTH, 13);
        //ca.set(Calendar.DAY_OF_WEEK,1);  //星期从天开始，1开始
        ca.set(Calendar.HOUR_OF_DAY,18); //24小时制
        ca.set(Calendar.MINUTE,00); //分
        ca.set(Calendar.SECOND,00); //秒

        System.out.println(ca.getTime());

    }

}
